package com.bird.pro.service;

import java.util.List;

import com.bird.pro.pojo.BirdPosttype;
import com.bird.pro.vo.PostType;

public interface IPostTypeService {

	public int saveType(BirdPosttype posttype);
	
	public int updateType(BirdPosttype posttype);
	
	public int deleteType(Integer id);
	
	public List<BirdPosttype> getFirstTypes();
	
	public List<BirdPosttype> getSecondTypes(Integer pid);
	
	public List<BirdPosttype> getTypes(String code);
	
	public List<PostType> getPostTypes();

	BirdPosttype getTypeByCode(String code);

	PostType getType(String code);
}
